// This syntax would work if the modules return something. The return value is the argument
// for the call back function. (I tested with immediate function pattern but it did not really 
// worked for me).
//require(["com/opentext/viewer","com/opentext/document", "com/opentext/page" ], function(OTV, OTD, OTP ) {

// This pattern can be used if the dependent javascript files are creating global objects.
// The call back function does not need any arguments, the objects are available in the
// global namespace.
require(["com/opentext/viewer","com/opentext/document", "com/opentext/page" ], function() {
	 debugger;
	 var gViewer = new opentext.cvs.OTViewer();
	 console.log("loading the program ...");

	 gViewer.init();
	 gViewer.addPage("prvni stranka textu");
	 gViewer.addPage("druha stranka textu");
	 gViewer.addPage("treti stranka textu");

	 console.log("terminating the program ...");
});
